﻿using BCCommon.Extensions;
using BCCommon.TMS.DimensionUnit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Packing.PackingConfig
{
    /// <summary>
    /// 包装材料配置
    /// </summary>
    public class PackingConfigDto
    {
        /// <summary>
        /// 包装材料配置Id
        /// </summary>
        public int PackingConfigId { get; set; }

        /// <summary>
        /// 包装材料分类配置Id
        /// </summary>
        public int PackingCategoryConfigId { get; set; }

        /// <summary>
        /// 包装材料标题
        /// </summary>
        public string PackingTitle { get; set; }

        /// <summary>
        /// 材料宽度
        /// </summary>
        public int PackingWidth { get; set; }

        /// <summary>
        /// 材料长度
        /// </summary>
        public int PackingLength { get; set; }

        /// <summary>
        /// 材料高度
        /// </summary>
        public int PackingHeight { get; set; }

        /// <summary>
        /// 尺寸单位
        /// </summary>
        public DimensionUnit DimensionUnit { get; set; }

        /// <summary>
        /// 尺寸单位描述
        /// </summary>
        public string DimensionUnitStr { get { return this.DimensionUnit.GetDescriptionString(); } }

        /// <summary>
        /// 显示单位
        /// </summary>
        public DimensionUnit ShowUnit { get; set; }

        /// <summary>
        /// 显示单位描述
        /// </summary>
        public string ShowUnitStr { get { return this.ShowUnit.GetDescriptionString(); } }

        /// <summary>
        /// 转换单位比例
        /// </summary>
        public int TransformRatio { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 已启用
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        public long? EditAdminId { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string EditAdminName { get; set; }
    }
}
